<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>String 对象</title>
</head>
<body>
<script>

    var width="width height px hello world";
    document.write("width:"+width.length+"<br/>");
    var array=width.split(" ");
    document.write("width数组信息："+array+"<br/>")
    document.write("width数组信息："+array.length+"<br/>")




</script>
</body>
</html>